<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.2"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>轮回之牢: D:/Code/cProgram/CPP/Qt/TeamCurriculumDesign/Item/Buff/BaseBuff.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">轮回之牢<span id="projectnumber">&#160;0.0.1</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.2 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_80876d1476b72d92a9650b7ee3516e4c.html">TeamCurriculumDesign</a></li><li class="navelem"><a class="el" href="dir_7b149e5ebf6d24756f03bb71c9a9b2ab.html">Item</a></li><li class="navelem"><a class="el" href="dir_7cb2980abe0dcd7ae6b828e54a2d9994.html">Buff</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle"><div class="title">BaseBuff.h</div></div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span><span class="comment">//</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno">    2</span><span class="comment">// Created by lenovo on 2021/9/10.</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno">    3</span><span class="comment">//</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno">    4</span> </div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno">    5</span><span class="preprocessor">#ifndef TEAMCURRICULUMDESIGN_BASEBUFF_H</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno">    6</span><span class="preprocessor">#define TEAMCURRICULUMDESIGN_BASEBUFF_H</span></div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno">    7</span> </div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno">    8</span> </div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno">    9</span><span class="preprocessor">#include &quot;../BaseItem.h&quot;</span></div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno">   10</span> </div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"><a class="line" href="class_base_buff.html">   14</a></span><span class="keyword">class </span><a class="code hl_class" href="class_base_buff.html">BaseBuff</a> : <span class="keyword">public</span> <a class="code hl_class" href="class_base_item.html">BaseItem</a> {</div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno">   15</span><span class="keyword">protected</span>:</div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"><a class="line" href="class_base_buff.html#a820e12f0da0205effb824b49b36365b2">   19</a></span>    <span class="keywordtype">double</span> <a class="code hl_variable" href="class_base_buff.html#a820e12f0da0205effb824b49b36365b2">velocity_buff_ratio</a> = 1.0;<span class="comment">//速度比率</span></div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"><a class="line" href="class_base_buff.html#a1df72e7275a2e44bd193d55e3a266f1d">   23</a></span><span class="comment"></span>    <span class="keywordtype">double</span> <a class="code hl_variable" href="class_base_buff.html#a1df72e7275a2e44bd193d55e3a266f1d">gravity_buff_ratio</a> = 1.0;<span class="comment">//重力比率</span></div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"><a class="line" href="class_base_buff.html#ad23031b75ce056aec9b748c01342b298">   27</a></span><span class="comment"></span>    <span class="keywordtype">double</span> <a class="code hl_variable" href="class_base_buff.html#ad23031b75ce056aec9b748c01342b298">attack_power_buff_ratio</a> = 1.0;<span class="comment">//攻击力比率</span></div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"><a class="line" href="class_base_buff.html#af208d95a81d09d2ee9ff595e31a24ac2">   31</a></span><span class="comment"></span>    <span class="keywordtype">double</span> <a class="code hl_variable" href="class_base_buff.html#af208d95a81d09d2ee9ff595e31a24ac2">health_buff</a> = 0.0;<span class="comment">//体力值</span></div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"><a class="line" href="class_base_buff.html#a638af7859c39b2f324813b772053f559">   35</a></span><span class="comment"></span>    <span class="keywordtype">double</span> <a class="code hl_variable" href="class_base_buff.html#a638af7859c39b2f324813b772053f559">permanent_defensive_power_buff</a> = 0.0;</div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno">   36</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno">   41</span>    <span class="keywordtype">double</span> <a class="code hl_function" href="class_base_buff.html#abd2c21a1a0c95590208317291a8f874b">getPermanentDefensivePowerBuff</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno">   42</span> </div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno">   43</span><span class="keyword">protected</span>:</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"><a class="line" href="class_base_buff.html#a95e0d691f250b451616ef2531108df29">   47</a></span>    <span class="keywordtype">double</span> <a class="code hl_variable" href="class_base_buff.html#a95e0d691f250b451616ef2531108df29">health_buff_ratio</a> = 1.0f;<span class="comment">//体力比率</span></div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"><a class="line" href="class_base_buff.html#a321a6cc1700bf678ac7c131c328e90e6">   51</a></span><span class="comment"></span>    <span class="keywordtype">double</span> <a class="code hl_variable" href="class_base_buff.html#a321a6cc1700bf678ac7c131c328e90e6">defensive_power_buff</a> = 0.0;<span class="comment">//防御力值</span></div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno">   52</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno">   57</span>    <span class="keywordtype">double</span> <a class="code hl_function" href="class_base_buff.html#abf220469ae6a5ab0630a39163f57030d">getVelocityBuffRatio</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno">   62</span>    <span class="keywordtype">double</span> <a class="code hl_function" href="class_base_buff.html#a398e128ef2a8e43ac6374b06fb5517c5">getGravityBuffRatio</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno">   67</span>    <span class="keywordtype">double</span> <a class="code hl_function" href="class_base_buff.html#a8f5635190ba668e2b4ab84701e85e57d">getAttackPowerBuffRatio</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno">   72</span>    <span class="keywordtype">double</span> <a class="code hl_function" href="class_base_buff.html#a146b793898a143af06393e0df870528d">getHealthBuff</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno">   77</span>    <span class="keywordtype">double</span> <a class="code hl_function" href="class_base_buff.html#aa016c942a60c774c7dcf2e25b9aece29">getHealthBuffRatio</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno">   82</span>    <span class="keywordtype">double</span> <a class="code hl_function" href="class_base_buff.html#a03664e0db898c0765a6fff50a575370f">getDefensivePowerBuff</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno">   83</span> </div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno">   84</span>    <a class="code hl_class" href="class_base_buff.html">BaseBuff</a>(<span class="keywordtype">double</span> velocityBuffRatio, <span class="keywordtype">double</span> gravityBuffRatio, <span class="keywordtype">double</span> attackPowerBuffRatio, <span class="keywordtype">double</span> healthBuff,</div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno">   85</span>             <span class="keywordtype">double</span> healthBuffRatio, <span class="keywordtype">double</span> defensivePowerBuff, <span class="keywordtype">int</span> <a class="code hl_variable" href="class_base_item.html#ae7cede2e9984e90cba978a02045adcc9">max_durability</a>);</div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno">   86</span>};</div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno">   87</span> </div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno">   88</span> </div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno">   89</span><span class="preprocessor">#endif </span><span class="comment">//TEAMCURRICULUMDESIGN_BASEBUFF_H</span></div>
<div class="ttc" id="aclass_base_buff_html"><div class="ttname"><a href="class_base_buff.html">BaseBuff</a></div><div class="ttdoc">buff基类</div><div class="ttdef"><b>Definition:</b> BaseBuff.h:14</div></div>
<div class="ttc" id="aclass_base_buff_html_a03664e0db898c0765a6fff50a575370f"><div class="ttname"><a href="class_base_buff.html#a03664e0db898c0765a6fff50a575370f">BaseBuff::getDefensivePowerBuff</a></div><div class="ttdeci">double getDefensivePowerBuff() const</div><div class="ttdoc">获取buff提供的防御力</div><div class="ttdef"><b>Definition:</b> BaseBuff.cpp:39</div></div>
<div class="ttc" id="aclass_base_buff_html_a146b793898a143af06393e0df870528d"><div class="ttname"><a href="class_base_buff.html#a146b793898a143af06393e0df870528d">BaseBuff::getHealthBuff</a></div><div class="ttdeci">double getHealthBuff() const</div><div class="ttdoc">获取buff提供的体力值</div><div class="ttdef"><b>Definition:</b> BaseBuff.cpp:31</div></div>
<div class="ttc" id="aclass_base_buff_html_a1df72e7275a2e44bd193d55e3a266f1d"><div class="ttname"><a href="class_base_buff.html#a1df72e7275a2e44bd193d55e3a266f1d">BaseBuff::gravity_buff_ratio</a></div><div class="ttdeci">double gravity_buff_ratio</div><div class="ttdoc">buff提供的重力比率</div><div class="ttdef"><b>Definition:</b> BaseBuff.h:23</div></div>
<div class="ttc" id="aclass_base_buff_html_a321a6cc1700bf678ac7c131c328e90e6"><div class="ttname"><a href="class_base_buff.html#a321a6cc1700bf678ac7c131c328e90e6">BaseBuff::defensive_power_buff</a></div><div class="ttdeci">double defensive_power_buff</div><div class="ttdoc">buff提供的临时防御值</div><div class="ttdef"><b>Definition:</b> BaseBuff.h:51</div></div>
<div class="ttc" id="aclass_base_buff_html_a398e128ef2a8e43ac6374b06fb5517c5"><div class="ttname"><a href="class_base_buff.html#a398e128ef2a8e43ac6374b06fb5517c5">BaseBuff::getGravityBuffRatio</a></div><div class="ttdeci">double getGravityBuffRatio() const</div><div class="ttdoc">获取buff提供的重力比率</div><div class="ttdef"><b>Definition:</b> BaseBuff.cpp:23</div></div>
<div class="ttc" id="aclass_base_buff_html_a638af7859c39b2f324813b772053f559"><div class="ttname"><a href="class_base_buff.html#a638af7859c39b2f324813b772053f559">BaseBuff::permanent_defensive_power_buff</a></div><div class="ttdeci">double permanent_defensive_power_buff</div><div class="ttdoc">buff提供的永久防御力</div><div class="ttdef"><b>Definition:</b> BaseBuff.h:35</div></div>
<div class="ttc" id="aclass_base_buff_html_a820e12f0da0205effb824b49b36365b2"><div class="ttname"><a href="class_base_buff.html#a820e12f0da0205effb824b49b36365b2">BaseBuff::velocity_buff_ratio</a></div><div class="ttdeci">double velocity_buff_ratio</div><div class="ttdoc">buff提供的加速比率</div><div class="ttdef"><b>Definition:</b> BaseBuff.h:19</div></div>
<div class="ttc" id="aclass_base_buff_html_a8f5635190ba668e2b4ab84701e85e57d"><div class="ttname"><a href="class_base_buff.html#a8f5635190ba668e2b4ab84701e85e57d">BaseBuff::getAttackPowerBuffRatio</a></div><div class="ttdeci">double getAttackPowerBuffRatio() const</div><div class="ttdoc">获取buff提供的攻击力比率</div><div class="ttdef"><b>Definition:</b> BaseBuff.cpp:27</div></div>
<div class="ttc" id="aclass_base_buff_html_a95e0d691f250b451616ef2531108df29"><div class="ttname"><a href="class_base_buff.html#a95e0d691f250b451616ef2531108df29">BaseBuff::health_buff_ratio</a></div><div class="ttdeci">double health_buff_ratio</div><div class="ttdoc">buff提供的体力值比率</div><div class="ttdef"><b>Definition:</b> BaseBuff.h:47</div></div>
<div class="ttc" id="aclass_base_buff_html_aa016c942a60c774c7dcf2e25b9aece29"><div class="ttname"><a href="class_base_buff.html#aa016c942a60c774c7dcf2e25b9aece29">BaseBuff::getHealthBuffRatio</a></div><div class="ttdeci">double getHealthBuffRatio() const</div><div class="ttdoc">获取buff提供的体力值比率</div><div class="ttdef"><b>Definition:</b> BaseBuff.cpp:35</div></div>
<div class="ttc" id="aclass_base_buff_html_abd2c21a1a0c95590208317291a8f874b"><div class="ttname"><a href="class_base_buff.html#abd2c21a1a0c95590208317291a8f874b">BaseBuff::getPermanentDefensivePowerBuff</a></div><div class="ttdeci">double getPermanentDefensivePowerBuff() const</div><div class="ttdoc">获取buff提供的永久防御力</div><div class="ttdef"><b>Definition:</b> BaseBuff.cpp:43</div></div>
<div class="ttc" id="aclass_base_buff_html_abf220469ae6a5ab0630a39163f57030d"><div class="ttname"><a href="class_base_buff.html#abf220469ae6a5ab0630a39163f57030d">BaseBuff::getVelocityBuffRatio</a></div><div class="ttdeci">double getVelocityBuffRatio() const</div><div class="ttdoc">获取buff提供的速度比率</div><div class="ttdef"><b>Definition:</b> BaseBuff.cpp:19</div></div>
<div class="ttc" id="aclass_base_buff_html_ad23031b75ce056aec9b748c01342b298"><div class="ttname"><a href="class_base_buff.html#ad23031b75ce056aec9b748c01342b298">BaseBuff::attack_power_buff_ratio</a></div><div class="ttdeci">double attack_power_buff_ratio</div><div class="ttdoc">buff提供的攻击力比率</div><div class="ttdef"><b>Definition:</b> BaseBuff.h:27</div></div>
<div class="ttc" id="aclass_base_buff_html_af208d95a81d09d2ee9ff595e31a24ac2"><div class="ttname"><a href="class_base_buff.html#af208d95a81d09d2ee9ff595e31a24ac2">BaseBuff::health_buff</a></div><div class="ttdeci">double health_buff</div><div class="ttdoc">buff提供的体力值</div><div class="ttdef"><b>Definition:</b> BaseBuff.h:31</div></div>
<div class="ttc" id="aclass_base_item_html"><div class="ttname"><a href="class_base_item.html">BaseItem</a></div><div class="ttdoc">物品基类</div><div class="ttdef"><b>Definition:</b> BaseItem.h:13</div></div>
<div class="ttc" id="aclass_base_item_html_ae7cede2e9984e90cba978a02045adcc9"><div class="ttname"><a href="class_base_item.html#ae7cede2e9984e90cba978a02045adcc9">BaseItem::max_durability</a></div><div class="ttdeci">int max_durability</div><div class="ttdoc">最大耐久度，不可破坏的物品可能为任意负值</div><div class="ttdef"><b>Definition:</b> BaseItem.h:39</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.2
</small></address>
</body>
</html>
